import axiosInstance from "../axiosInstance";

const userInfo={
    /**
     * 获取用户信息列表
     * @param {pageIndex,nikName,uer_phone,user_sex} param0 
     * @returns {Promise<Object>}
     */
    getListByPage({pageIndex,nickName,uer_phone,user_sex}){
        return axiosInstance.get(`/userInfo/getListByPage`,{
            params:{
                pageIndex,nickName,uer_phone,user_sex
            }
        })
    },
    /**
     * 
     * @param {Number} id 
     * @returns 
     */
    deleteById(id){
        return axiosInstance.get( `/userInfo/deleteById`,{
            params:{
                id
            }
        })
    }

}

export default userInfo;